import { AppType, getAppType } from "./app-type.js";

const MiniProTypeMap = {
  [AppType.E_COMMUNITY]: "mini_program_ecommunity", //鹅圈子小程序
  [AppType.COMMUNITY]: "mini_program_merchant_community", //独立圈子小程序
  [AppType.WX_MINI_PROGRAM_SDK]: "mini_program_wechat_sdk" //小程序sdk
};

export function resolveMiniProType(appType) {
  const miniProType = MiniProTypeMap[appType];
  return miniProType;
}

export function getMiniProType() {
  return resolveMiniProType(getAppType())
}